package com.ltedu.user.domain.vo;

import com.ltedu.common.validate.Create;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @className: RegisterVO
 * @auther: Jerry
 * @date: 2020/11/27 9:23
 * @desctiption: TODO
 * @version: 1.0
 */
public class RegisterVO implements Serializable {
    private static final long serialVersionUID = -1297998589928150502L;

    /**
     * 昵称
     */
    @NotEmpty(groups = Create.class, message = "昵称不能为空")
    private String nickname;

    /**
     * 密码
     */
    @NotEmpty(groups = Create.class, message = "密码不能为空")
    private String password;

    /**
     * 二次确认密码
     */
    @NotEmpty(groups = Create.class, message = "确认密码不能为空")
    private String confirmPassword;

    /**
     * 手机号
     */
    @NotEmpty(groups = Create.class, message = "手机号不能为空")
    private String mobile;

    /**
     * 验证码
     */
    @NotEmpty(groups = Create.class, message = "验证码不能为空")
    private String code;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
